<template>
  <div id="menuNode">

    <div class="item-node menu-node">
      <div v-if="node.type.indexOf('in-')==0" style="color: #00aba9;">
        {{ node.name }}
      </div>
      <div v-else-if="node.type.indexOf('out-')==0" style="color: #006aba;">
        {{ node.name }}
      </div>
      <div v-else-if="node.type.indexOf('code-')==0" style="color: #df5000">
        {{ node.name }}
      </div>
      <div v-else >
        {{ node.name }}
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "menu-node",
  props: ["node"]
};
</script>

<style scoped lang="scss">
.item-node {
  user-select: none;
  background: #abc7ff31;
  border: 1px solid #abc7ff;
  i {
    font-size: 10px;
  }
}

.menu-node {
  min-width: 30px;
  line-height: 32px;
  padding: 0px 10px ;
  border-radius: 30px;
  text-align: center;
  font-size: 10px;
}
</style>
